/*
CSS for semver.org
@author Mathias Bynens
@link http://mathiasbynens.be/
*/

h1,
h2,
ol,
ul {
  margin: 0;
  padding: 0;
}

html {
  font: 14.4px/1.5 Helvetica, Arial, sans-serif;
}
body {
  margin: 0 auto;
  padding: 0 10%;
  max-width: 710px;
  color: #000;
  background-color: #fff;
}

pre {
  overflow: auto;
}

@-ms-viewport {
  width: device-width;
}
html {
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  text-align: center;
}
h1 {
  font-size: 43px;
  margin: 1.1em 0 0.7em;
}
h2 {
  margin: 2.1em 0 0.7em;
  font-size: 24px;
}
h3 {
  text-align: left;
  font-size: 15.8px;
  margin-bottom: 0.6em;
}
html[dir="rtl"] h3 {
  text-align: right;
}

a {
  color: #009;
}
a:hover,
a:focus {
  color: #000;
}
ol,
ul {
  padding-left: 1.5em;
}
html[dir="rtl"] ol,
html[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 1.5em;
}

p {
  margin: 0 0 1em;
}

@media print {
  body {
    width: 100%;
  }
  h1,
  h2,
  h3 {
    font-weight: bold;
  }
  a:after {
    content: " <" attr(href) ">";
    font-size: 90%;
  }
}

/* Nav */

ul.nav {
  background-color: #333;
  list-style-type: none;
  margin: 0;
  padding: 0.5em 0;
  overflow: hidden;
}

ul.nav li {
  display: inline;
  font-weight: bold;
  margin: 0 0.5em;
  white-space: nowrap;
}

ul.nav li a {
  color: white;
}

ul.lang {
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

ul.lang li a {
  color: black;
}

/* Anchor Link styling */

#spec a.anchor-link {
  opacity: 0;
  /* Got this background image from an AnchorJs example http://bryanbraun.github.io/anchorjs/ */
  background: url("");
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  margin-left: -1em;
  height: 1em;
  width: 20px;
  text-decoration: none;
}

html[dir="rtl"] #spec a.anchor-link {
  background-position-x: right;
  margin-left: 0;
  margin-right: -1em;
  padding-right: 0;
  padding-left: 0.5em;
}

#spec h1 a.anchor-link,
#spec h2 a.anchor-link,
#spec h3 a.anchor-link {
  height: calc(1em * 1.5);
}

#spec h1 a.anchor-link {
  margin-left: -0.6em;
}

html[dir="rtl"] #spec h1 a.anchor-link {
  margin-right: -0.6em;
  margin-left: 0;
}

#spec h3 a.anchor-link {
  margin-left: -1.5em;
}

html[dir="rtl"] #spec h3 a.anchor-link {
  margin-left: 0;
  margin-right: -1.5em;
}

#spec li a.anchor-link {
  margin-top: 0.1em;
  margin-left: -3em;
}

html[dir="rtl"] #spec li a.anchor-link {
  margin-left: 0;
  margin-right: -3em;
}

#spec [id] {
  position: relative;
}

#spec [id]:hover > .anchor-link,
.anchor-link:focus {
  opacity: 1;
}
